package com.reading.core.utils;

import java.util.Random;

/**
 * 相关常量
 *
 * @author guwenqi_1995@163.com
 * @date 2019/7/8 2:14 PM
 **/
public class GlobalConstant {

    //------------------------------------- 密码相关常量 -------------------------------------//

    public static final Integer SALT_LENGTH = 6;

    //------------------------------------- 评论相关常量 -------------------------------------//

    public static final Integer COMMENT_START_NUMBER = 1;


    //------------------------------------- 用户相关常量 -------------------------------------//

    private static final String[] NICKNAMES = {
            "沙沙粒小", "七七", "傻逼既视感", "你的背包", "意中人", "万劫不复", "梓梦", "愛殇璃", "万劫不复",
            "源来凯始玺欢你", "小傻瓜", "凤舞天涯", "小兔几", "天煞孤星", "遗失的美好", "十二", "浅浅淡淡",
            "最好是你", "最单纯的乌龟", "伊面", "洋洋洒洒", "您的好友蓝忘机已上羡", "紫轩蝶泪", "蛮可爱",
            "最笨的告白", "后来的我们", "童话", "似梦非梦", "谈情不如逗狗", "高冷爸爸", "南城旧梦", "别理我",
            "诺曦", "悲欢浪女", "一枫情书", "尹雨沫", "呆橘", "困倦", "玉环", "青柠芒果", "来日方长", "痞味浪人",
            "旧城空念", "世界和平", "二货你真萌", "老子叫无熙", "唐婉", "骄傲", "冰火雁神", "老娘不死你永远是小三",
            "慈悲佛祖", "满地尘埃落定", "圈圈圆圆圈圈", "寻找我们的幸福", "孤蝉", "尴尬癌患者", "身边", "所谓喜欢",
            "南笙", "失而复得", "转身以后", "勿忘心安", "神回复", "江湖彼岸", "段念尘", "饭团", "你的笑",
            "烟花易冷人易散", "蓦然回首", "北恋", "白日梦", "美羊羊", "罗罗贝儿", "小红帽", "灯下孤影", "爱冒险",
            "水中月", "过气美图社", "陈独秀", "陈甜", "柒七", "遗忘曾经", "娇纵", "不顾", "衣神在巴黎", "篱下浅笙歌",
            "情话墙", "酷炫老祖宗", "打小就很酷", "南风起", "我的奇迹", "浅忆", "油焖大侠", "半夏半凉", "玩物", "吖咩",
            "猫七", "可可" };

    /**
     * 获取随机昵称
     *
     * @return
     */
    public static String getRandomNickName() {
        int index = new Random().nextInt(NICKNAMES.length);

        return NICKNAMES[index];
    }

    /**
     * 用户初始头像
     */
    public static final Integer USER_INIT_HEAD_IMG = 1;

    /**
     * 用户初始性别
     */
    public static final Integer USER_INIT_GENDER = 2;

    /**
     * 用户初始状态
     */
    public static final Integer USER_INIT_STATUS = 1;

    /**
     * 用户初始简介
     */
    public static final String USER_INIT_DESCR = "这个人很神秘，什么都没有留下。";

    //------------------------------------- 验证码相关常量 -------------------------------------//

    public static final String VALIDATOR_IMAGE_URL = "/Library/Project/img/";

    public static final String VALIDATOR_IMAGE_FUSSIX = ".jpg";

    public static final Integer VALIDATOR_CODE_LENGTH = 4;

    public static final Integer VALIDATOR_IMAGE_HEIGHT = 80;

    public static final Integer VALIDATOR_IMAGE_WIDTH = 200;


    //------------------------------------- 验证码相关常量 -------------------------------------//

    public static final Integer NUMBER_0 = 0;

    public static final Integer NUMBER_1 = 1;

    public static final Integer NUMBER_2 = 2;
}
